# https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/bd_logo1-66368c33f8.png
import requests

url = 'https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/bd_logo1-66368c33f8.png'
# 对图片进行请求
data = requests.get(url)

f = open("百度.png",'wb') # 创建文件写入二进制数据
f.write(data.content) # 以字节流的形式写入
f.close() # 关闭文件